package router

import (
	"github.com/gin-gonic/gin"
	"goods_bff/controller/category"
)

func InitCategoryRouter(router *gin.Engine) {
	v1 := router.Group("/v1/category")
	{
		v1.GET("", category.CategoryList)      //商品分类列表
		v1.POST("", category.CreateCategory)   //新建接口
		v1.PUT("", category.UpdateCategory)    //用户修改接口
		v1.DELETE("", category.DeleteCategory) //用户删除接口

	}
}
